notebook: don't force ACTIVE state flag on the label for active tab
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 Jan 2012 21:10:20 +0000 (16:10 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 Jan 2012 21:13:25 +0000 (16:13 -0500)
This is just wrong, since it's not the tab label being active, but the
tab itself.

gtk/gtknotebook.c

index 32cdee71ee714d783f7f3547f20384b56c679f85..62a8535137b168e3fac1cf604a27d76cf9f19646 100644 (file)
@@ -6508,10 +6508,12 @@ gtk_notebook_update_tab_states (GtkNotebook *notebook)
         {
           GtkRegionFlags current_flags;
 
+          /*
           if (page == priv->cur_page)
             gtk_widget_set_state_flags (page->tab_label, GTK_STATE_FLAG_ACTIVE, FALSE);
           else
             gtk_widget_unset_state_flags (page->tab_label, GTK_STATE_FLAG_ACTIVE);
+          */
 
           /* FIXME: We should store these flags somewhere instead of poking
            * the widget's path */